Skip to content

New functions CLng and CDbl#25

Merged
verhas merged 2 commits intoverhas:masterfrom
PetrPytelka:clng_cdbl
Feb 4, 2020
Merged

New functions CLng and CDbl#25
verhas merged 2 commits intoverhas:masterfrom
PetrPytelka:clng_cdbl

Conversation

@PetrPytelka
Copy link
Copy Markdown
Contributor

New functions CLng and CDbl.

Copy link
Copy Markdown
Owner

@verhas verhas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great code. The only issue is the message in the exceptions. Please use undef instead of NULL in the message. NULL is confusing for the BASIC developers.

Comment thread src/main/java/com/scriptbasic/utility/functions/UtilityFunctions.java Outdated
@BasicFunction(classification = Utility.class)
static public Long clng(final Object arg) throws BasicRuntimeException {
if (arg == null) {
throw new BasicRuntimeException("NULL cannot be converted to long");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my reasoning about NULL above and fix this message also. Thanks.

@PetrPytelka PetrPytelka requested a review from verhas February 4, 2020 13:43
@verhas verhas merged commit 7dc3784 into verhas:master Feb 4, 2020
@PetrPytelka PetrPytelka deleted the clng_cdbl branch February 4, 2020 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants